class VariableCost {
    int id
    Float amount = 0
    CostCategory category
    
    static belongsTo = [Budget]
    
    static constraints = {
        amount(min:(Float)0,nullable:false)        
    }

    String toString()
    {
        return Budget.name +" : " + amount.toString() + " SEK"
    }
}
